package cn.edu.eight.food.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index")
public class indexController {

    //跳转到首页
    @RequestMapping("/food")
    private String index(){
        return "index";
    }

    //跳转到热门页面
    @RequestMapping("/hotFood")
    private String hotFood(){
        return "hot";
    }

    //跳转到个人中心
    @RequestMapping("/personal")
    private String personal(){
        return "personal";
    }

    //跳转到修改密码
    @RequestMapping("/password")
    private String password(){
        return "password";
    }

    //跳转到微信支付
    @RequestMapping("/payment")
    private String payment(){
        return "payment";
    }

    //跳转到支付宝支付
    @RequestMapping("/paymenttwo")
    private String paymenttwo(){
        return "paymenttwo";
    }

    //跳转到评价页面
    @RequestMapping("/evaluate")
    private String evaluate(){
        return "redirect:/comment/commentList";
    }
}
